package Test;

import javax.swing.*;

public class Test01 {
    private  static void createGui(){
        JFrame frame = new JFrame(" 这是一个顶层容器");
        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        frame.setSize(550,550);
        frame.setVisible(true);
    }

    public static void main(String[] args) {
        SwingUtilities.invokeLater(Test01::createGui);
    }
}
